import request from "@/utils/request";

export function list(params){
    return request({
        url:'/appointment-scheduler/selectAll',
        method:'get',
        params:params
    })
}


export function save(data){
    return request({
        url:'/appointment-scheduler/save',
        method:'POST',
        data:data
    })
}

export function edit(data){
    return request({
        url:'/appointment-scheduler/edit',
        method:'POST',
        data:data
    })
}


export function delAppointmentScheduler(id){
    return request({
        url:'/appointment-scheduler/delete/'+id,
        method:'DELETE',
    })
}



export function deleteBatch(data){
    return request({
        url:'/appointment-scheduler/deleteBatch',
        method:'POST',
        data:data
    })
}


export function getDepartmentAppointmentSchedulerInfos(params){
    return request({
        url:'/appointment-scheduler/getDepartmentAppointmentSchedulerInfos',
        method:'get',
        params:params
    })
}


export function selectAppointmentSchedulerDetailInfos(params){
    return request({
        url:'/appointment-scheduler/selectAppointmentSchedulerDetailInfos',
        method:'get',
        params:params
    })
}

export function getAppointmentTimeList(appointmentSchedulerId){
    return request({
        url:'/appointment-scheduler/getAppointmentTimeList/'+appointmentSchedulerId,
        method:'GET',
    })
}


export function suspend(params){
    return request({
        url:'/appointment-scheduler/suspend',
        method:'get',
        params:params
    })
}


export function selectSuspendNoticeList(){
    return request({
        url:'/appointment-scheduler/selectSuspendNoticeList',
        method:'get',
    })
}